﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<brjostagjof.Models.New>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Breyta frétt
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="editHeader">Breyta frétt</h2>
  <% using (Html.BeginForm())
       {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <div class="editor-label">
                Fyrirsögn
            </div>
             <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ArticleBase.InformationBase.headline)%>
                <%: Html.ValidationMessageFor(model => model.ArticleBase.InformationBase.headline)%>
            </div>
             <div class="editor-label">
                Efni
            </div>
             <div class="editor-field">
                <%: Html.TextAreaFor(model => model.ArticleBase.InformationBase.context, new { @class = "ckeditor", rows = "10", cols = "40" })%>
                <%: Html.ValidationMessageFor(model => model.ArticleBase.InformationBase.context) %>
            </div>

            <div class="editor-label">
                Flokkur
            </div>

            <div class="editor-field">
                 <%= Html.DropDownListFor(model => model.ArticleBase.ArticleCategory.ID, ViewData["Listitems"] as IEnumerable<SelectListItem>)%>
                 <%: Html.ValidationMessageFor(model => model.ArticleBase.ArticleCategory.ID) %>
            </div>   
            
        
            <div class="editor-field">
               Birta <%= Html.CheckBoxFor(model=> model.ArticleBase.displayed)%>
                <%: Html.ValidationMessageFor(model => model.ArticleBase.displayed)%>
            </div>
          
          <div class="edit">
                <%= Html.HiddenFor(model => model.ArticleBase.InformationBase.ID) %>
          </div>
            <p>
                <input type="submit" value="Staðfesta" />
            </p>

         </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Hætta við", "Index") %>
    </div>





</asp:Content>

